home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / lightning-0.8-tb-win.xpi / chrome / calendar.jar / content / calendar / calendar-summary-dialog.xul < prev    next >
Extensible Markup Language  |  2007-12-06  |  12KB  |  287 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.    - ***** BEGIN LICENSE BLOCK *****
  4.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.    -
  6.    - The contents of this file are subject to the Mozilla Public License Version
  7.    - 1.1 (the "License"); you may not use this file except in compliance with
  8.    - the License. You may obtain a copy of the License at
  9.    - http://www.mozilla.org/MPL/
  10.    -
  11.    - Software distributed under the License is distributed on an "AS IS" basis,
  12.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.    - for the specific language governing rights and limitations under the
  14.    - License.
  15.    -
  16.    - The Original Code is Sun Microsystems code.
  17.    -
  18.    - The Initial Developer of the Original Code is Sun Microsystems.
  19.    - Portions created by the Initial Developer are Copyright (C) 2006
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Michael Buettner <michael.buettner@sun.com>
  24.    -
  25.    - Alternatively, the contents of this file may be used under the terms of
  26.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  27.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.    - in which case the provisions of the GPL or the LGPL are applicable instead
  29.    - of those above. If you wish to allow use of your version of this file only
  30.    - under the terms of either the GPL or the LGPL, and not to allow others to
  31.    - use your version of this file under the terms of the MPL, indicate your
  32.    - decision by deleting the provisions above and replace them with the notice
  33.    - and other provisions required by the GPL or the LGPL. If you do not delete
  34.    - the provisions above, a recipient may use your version of this file under
  35.    - the terms of any one of the MPL, the GPL or the LGPL.
  36.    -
  37.    - ***** END LICENSE BLOCK *****
  38. -->
  39.  
  40. <?xml-stylesheet type="text/css" href="chrome://global/skin/global.css"?>
  41. <?xml-stylesheet type="text/css" href="chrome://calendar/skin/calendar-event-dialog.css"?>
  42. <?xml-stylesheet type="text/css" href="chrome://calendar/content/datetimepickers/datetimepickers.css"?>
  43.  
  44. <!DOCTYPE dialog [
  45.   <!ENTITY % globalDTD SYSTEM "chrome://calendar/locale/global.dtd" >
  46.   <!ENTITY % calendarDTD SYSTEM "chrome://calendar/locale/calendar.dtd" >
  47.   <!ENTITY % sunDialogDTD SYSTEM "chrome://calendar/locale/sun-calendar-event-dialog.dtd" >
  48.   <!ENTITY % dialogDTD SYSTEM "chrome://calendar/locale/calendar-event-dialog.dtd" >
  49.   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  50.   %globalDTD;
  51.   %calendarDTD;
  52.   %sunDialogDTD;
  53.   %dialogDTD;
  54.   %brandDTD;
  55. ]>     
  56.  
  57. <dialog id="calendar-summary-dialog"
  58.         onload="onLoad()"
  59.         ondialogaccept="return onAccept();"
  60.         ondialogcancel="return onCancel();"
  61.         persist="screenX screenY"
  62.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  63.  
  64.   <!-- Javascript includes -->
  65.   <script type="application/x-javascript"
  66.           src="chrome://calendar/content/calendar-summary-dialog.js"/>
  67.   <script type="application/x-javascript"
  68.           src="chrome://calendar/content/calendar-dialog-utils.js"/>
  69.   <script type="application/x-javascript"
  70.           src="chrome://calendar/content/calUtils.js"/>
  71.   <script type="application/x-javascript"
  72.           src="chrome://calendar/content/calApplicationUtils.js"/>
  73.  
  74.   <!-- General -->
  75.   <box id="item-general-box" orient="vertical">
  76.     <box orient="horizontal" align="center">
  77.       <label value="&read.only.general.label;" class="headline"/>
  78.       <separator class="groove" flex="1"/>
  79.     </box>
  80.     <box orient="horizontal">
  81.       <spacer class="default-spacer"/>
  82.       <grid flex="1">
  83.         <columns>
  84.           <column/>
  85.           <column/>
  86.         </columns>
  87.         <rows>
  88.           <row align="top">
  89.             <label value="&read.only.title.label;" class="headline"/>
  90.             <label id="item-title"/>
  91.           </row>
  92.           <row align="top">
  93.             <label value="&read.only.date.label;" class="headline"/>
  94.             <label id="item-datetime"/>
  95.           </row>
  96.           <row id="repeat-row" align="top" hidden="true">
  97.             <label value="&read.only.repeat.label;" class="headline"/>
  98.             <box id="repeat-details" orient="vertical">
  99.               <label/>
  100.             </box>
  101.           </row>
  102.           <row id="location-row" align="top" hidden="true">
  103.             <label value="&read.only.location.label;" class="headline"/>
  104.             <label id="item-location"/>
  105.           </row>
  106.           <row id="category-row" align="top" hidden="true">
  107.             <label value="&read.only.category.label;" class="headline"/>
  108.             <label id="item-category"/>
  109.           </row>
  110.           <row id="organizer-row" align="top" hidden="true">
  111.             <label value="&read.only.organizer.label;" class="headline"/>
  112.             <label id="item-organizer"
  113.                    class="text-link"
  114.                    crop="right"
  115.                    onclick="sendMailToOrganizer()"/>
  116.           </row>
  117.           <row id="status-row" align="top" hidden="true">
  118.             <label value="&task.status.label;" class="headline"/>
  119.             <label value="&newevent.status.tentative.label;" hidden="true" status="TENTATIVE"/>
  120.             <label value="&newevent.status.confirmed.label;" hidden="true" status="CONFIRMED"/>
  121.             <label value="&newevent.status.cancelled.label;" hidden="true" status="CANCELLED"/>
  122.             <label value="&newevent.status.needsaction.label;" hidden="true" status="NEEDS-ACTION"/>
  123.             <label value="&newevent.status.inprogress.label;" hidden="true" status="IN-PROCESS"/>
  124.             <label value="&newevent.status.completed.label;" hidden="true" status="COMPLETED"/>
  125.           </row>
  126.           <separator id="item-main-separator" flex="1" class="groove" hidden="true"/>
  127.           <row id="invitation-row" hidden="true" align="center">
  128.             <label value="&read.only.reply.label;" control="item-participation"/>
  129.             <menulist id="item-participation" oncommand="updateInvitation()">
  130.               <menupopup>
  131.                 <menuitem label="&read.only.accept.label;" value="ACCEPTED"/>
  132.                 <menuitem label="&read.only.decline.label;" value="DECLINED"/>
  133.                 <menuitem label="&read.only.needs.action.label;" value="NEEDS-ACTION"/>
  134.               </menupopup>
  135.             </menulist>
  136.           </row>
  137.           <row id="reminder-row" hidden="true" align="center">
  138.             <label value="&read.only.reminder.label;" control="item-alarm"/>
  139.             <box orient="vertical">
  140.               <menulist id="item-alarm" oncommand="updateReminder()">
  141.                 <menupopup>
  142.                   <menuitem label="&event.reminder.none.label;"
  143.                             selected="true"
  144.                             value="none"/>
  145.                   <menuitem label="&event.reminder.5minutes.before.label;"
  146.                             length="5"
  147.                             origin="1"
  148.                             relation="START"
  149.                             unit="minutes"/>
  150.                   <menuitem label="&event.reminder.10minutes.before.label;"
  151.                             length="10"
  152.                             origin="1"
  153.                             relation="START"
  154.                             unit="minutes"/>
  155.                   <menuitem label="&event.reminder.15minutes.before.label;"
  156.                             length="15"
  157.                             origin="1"
  158.                             relation="START"
  159.                             unit="minutes"/>
  160.                   <menuitem label="&event.reminder.30minutes.before.label;"
  161.                             length="30"
  162.                             origin="1"
  163.                             relation="START"
  164.                             unit="minutes"/>
  165.                   <menuitem label="&event.reminder.45minutes.before.label;"
  166.                             length="45"
  167.                             origin="1"
  168.                             relation="START"
  169.                             unit="minutes"/>
  170.                   <menuseparator/>
  171.                   <menuitem label="&event.reminder.1hour.before.label;"
  172.                             length="1"
  173.                             origin="1"
  174.                             relation="START"
  175.                             unit="hours"/>
  176.                   <menuitem label="&event.reminder.2hours.before.label;"
  177.                             length="2"
  178.                             origin="1"
  179.                             relation="START"
  180.                             unit="hours"/>
  181.                   <menuitem label="&event.reminder.5hours.before.label;"
  182.                             length="5"
  183.                             origin="1"
  184.                             relation="START"
  185.                             unit="hours"/>
  186.                   <menuitem label="&event.reminder.15hours.before.label;"
  187.                             length="15"
  188.                             origin="1"
  189.                             relation="START"
  190.                             unit="hours"/>
  191.                   <menuseparator/>
  192.                   <menuitem label="&event.reminder.1day.before.label;"
  193.                             length="1"
  194.                             origin="1"
  195.                             relation="START"
  196.                             unit="days"/>
  197.                   <menuitem label="&event.reminder.2days.before.label;"
  198.                             length="2"
  199.                             origin="1"
  200.                             relation="START"
  201.                             unit="days"/>
  202.                   <menuitem label="&event.reminder.1week.before.label;"
  203.                             length="2"
  204.                             origin="1"
  205.                             relation="START"
  206.                             unit="days"/>
  207.                   <menuseparator/>
  208.                   <menuitem id="reminder-custom-menuitem"
  209.                             label="&event.reminder.custom.label;"
  210.                             value="custom"/>
  211.                 </menupopup>
  212.               </menulist>
  213.               <vbox id="reminder-details">
  214.                 <label class="text-link"
  215.                        crop="right"
  216.                        flex="1"
  217.                        onclick="updateReminder()"/>
  218.               </vbox>
  219.             </box>
  220.           </row>
  221.         </rows>
  222.       </grid>
  223.     </box>
  224.   </box>
  225.  
  226.   <!-- Attendees -->
  227.   <box id="item-attendees" hidden="true" orient="vertical">
  228.     <spacer class="default-spacer"/>
  229.     <box orient="horizontal" align="center">
  230.       <label value="&read.only.attendees.label;" class="headline" control="item-attendee-listbox"/>
  231.       <separator class="groove" flex="1"/>
  232.     </box>
  233.     <box orient="horizontal">
  234.       <spacer class="default-spacer"/>
  235.       <listbox id="item-attendee-listbox" rows="6" flex="1" disabled="true">
  236.         <listcols>
  237.           <listcol/>
  238.           <listcol/>
  239.         </listcols>
  240.         <listitem>
  241.           <listcell>
  242.             <image class="status-icon" hidden="true"/>
  243.             <label/>
  244.           </listcell>
  245.           <listcell>
  246.             <image class="status-icon" hidden="true"/>
  247.             <label/>
  248.           </listcell>
  249.         </listitem>
  250.       </listbox>
  251.     </box>
  252.   </box>
  253.  
  254.   <!-- Description -->
  255.   <box id="item-description-box" hidden="true" orient="vertical" flex="1">
  256.     <spacer class="default-spacer"/>
  257.     <box orient="horizontal" align="center">
  258.       <label value="&read.only.description.label;" class="headline" control="item-description"/>
  259.       <separator class="groove" flex="1"/>
  260.     </box>
  261.     <box orient="horizontal" flex="1">
  262.       <spacer class="default-spacer"/>
  263.       <textbox id="item-description"
  264.                multiline="true"
  265.                rows="6"
  266.                flex="1"/>
  267.     </box>
  268.   </box>
  269.  
  270.   <!-- Documents -->
  271.   <box id="item-link-box" hidden="true" orient="vertical">
  272.     <spacer class="default-spacer"/>
  273.     <box orient="horizontal" align="center">
  274.       <label value="&read.only.documents.label;" class="headline"/>
  275.       <separator class="groove" flex="1"/>
  276.     </box>
  277.     <box orient="horizontal">
  278.       <spacer class="default-spacer"/>
  279.       <label id="item-link"
  280.              class="text-link"
  281.              crop="right" 
  282.              onclick="browseDocument()"/>
  283.     </box>
  284.   </box>
  285.  
  286. </dialog>
  287.